<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CSS 动画 - animation</title>
  <style>
    body {
      padding: 0 40px;
    }

    .box {
      width: 200px;
      height: 100px;
      background-color: pink;

      animation: aaa 2s;
    }

    /* 关键帧序列 */
    @keyframes aaa {
      0% {
        width: 200px;
        height: 100px;

        /* background-color: pink; */
      }

      100% {
        width: 400px;
        height: 300px;
        background-color: blue;
        transform: translateX(200px) rotateZ(360deg);
      }
    }
    
  </style>
</head>
<body>
  <h3>animation</h3>
  <p>@keyframes 用来定义动画序列，animation 属性用来为标签盒子引用动画序列，同一个动画序列可以被多个标签盒子引用。</p>

  <div class="box"></div>
</body>
</html>